package me.szlx.validation.namespace;

import me.szlx.validation.Assert;

/**
 * Created by shenzhilin on 2017-3-15.
 */
public class SimpleNameSpace implements NameSpace {
    private final String name;

    public SimpleNameSpace(String name) {
        Assert.notNull(name, "名称空间名称不能为null");
        this.name = name;
    }

    @Override
    public String name() {
        return name;
    }
}
